﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NFit.Core.Interfaces;

namespace NFit.Core.DataSources
{
    /// <summary>
    /// Data source that take specifications from an assembly
    /// </summary>
    public class AssemblyRessourcesDataSource : ISpecificationDataSource
    {
        /// <summary>
        /// The name of the data source
        /// </summary>
        public string Name
        {
            get; set;
        }

        /// <summary>
        /// The specification reader for the data source
        /// </summary>
        public ISpecificationReader Reader
        {
            get;
            set;
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="reader"></param>
        public AssemblyRessourcesDataSource(ISpecificationReader reader)
        {
            this.Reader = reader;
        }

        /// <summary>
        /// Get the list of root specifications
        /// </summary>
        /// <returns></returns>
        public IEnumerable<SpecificationDefinition> GetTestDefinitions()
        {
            throw new NotImplementedException();
        }        
    }
}
